package dataexchange.messageconversion;

/**
 * Created by cwtao on 2017-04-28.
 * 该类提供object传送前转为String和收到返回报文时转回Object的统一方法，子类实现该方法后通过注解注入到服务中。
 */
public interface IMessageConversion{
    <S> String getSendString(S srcObject, Class<? extends S> srcClazz);

    <R> R getReceiveObject(String recString, Class<? extends R> recClazz);
}
